package com.dd.cloud.user.entity.chknowl;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author czg
 * @since 2022-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChknowlFoodStock implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 药食同源的药品id
     */
    private Integer foodId;

    /**
     * 供应商id
     */
    private Integer supplierId;

    /**
     * 库存数量 g克
     */
    private Integer stock;

    /**
     * 创建日期
     */
    private LocalDateTime createDate;

    /**
     * 有效期
     */
    private LocalDate termDate;

    /**
     * 状态 1正常 2禁用 3删除
     */
    private Integer status;

    /**
     * 销售单价
     */
    private BigDecimal unitPrice;


}
